<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/include/includeHeader.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%> 
<%@ page import="com.kylin.common.util.*,
				 com.kylin.common.Constants,
				 com.kylin.common.dict.orm.Dict,
                 com.kylin.common.paginate.DisplayPage,
			     com.kylin.module.specials.orm.Special" %>
<div class="in_title_lin"><bean:message key="home.07"/></div>
<% 
	Special sp = null;
	if(request.getAttribute("hot_topSpecial") instanceof DisplayPage)
	{
		DisplayPage dispage = (DisplayPage)request.getAttribute("hot_topSpecial");
		if(dispage.getList().size() > 0)
		{
			Special obj = (Special)dispage.getList().get(0);		
			sp = obj;	
%>
    <div id="in_tcom">
      <ul>
	       <li>
	          <a href="/module/special/manageSpecial.do?CMD=detailSpecial&id=<%=obj.getId() %>" target="_blank">
	            <img src="/fileOutServlet?imgType=<%=Constants.IMG_SPECIAL %>&imgurl=<%=obj.getTitleimage() %>"  width="75" height="75">
	          </a>
	       </li>
	       <li style="font-size:12px; width:220px; padding-left:4px;">
	           <%=JspHelper.substring(obj.getContent(),240,"...") %>
	       </li>
      </ul>
	</div>
<%
		}
   	}
   	else
   	{
   		out.println("null");
   	}
%>
	<div class="clean"></div>
	<%if(sp != null) {%>
	<div class="in_more">
	   <a href="/module/special/manageSpecial.do?CMD=listByCat&id=<%=sp.getCatspecial().getId() %>" target="_blank">
			<bean:message key="base.04"/>
	   </a>
	</div>
	<%} %>

<div class="in_title_lin"><bean:message key="home.08"/></div>
<div id="in_econ">
      <ul>
<% 
	if(request.getAttribute("hotSpecialList") instanceof DisplayPage)
	{
		DisplayPage dispage = (DisplayPage)request.getAttribute("hotSpecialList");
		for(int i=0;i<dispage.getList().size();i++)
		{
			Special obj = (Special)dispage.getList().get(i);
%>
       <li><a href="/module/special/manageSpecial.do?CMD=detailSpecial&id=<%=obj.getId() %>" target="_blank"><%=obj.getTitle() %></a></li>
<%  			
    		}
    }else{
    	out.println("没有热点数据");
    }
%>
      </ul>
</div>
<div class="in_more"><a href="/module/special/manageSpecial.do?CMD=index" target="_blank">
<bean:message key="base.04"/></a></div>
